package com.syx.job.Model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.syx.commoncore.Model.BaseEntity;
import lombok.Data;

@TableName("tb_user_exam")
@Data
public class UserExam extends BaseEntity {


    //表id
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long userExamId;

    @JsonSerialize(using = ToStringSerializer.class)
    //用户id
    private Long userId;
    @JsonSerialize(using = ToStringSerializer.class)

    //竞赛id
    private Long examId;

    //竞赛分数成绩
    private Integer score;

    //竞赛排名
    private Integer examRank;



}
